package com.weishaoying.rws.dao;

import com.weishaoying.rws.entity.User;

import java.util.List;

/**
 * 读写分离只需要这一套dao即可
 *
 * @author WeiShaoying
 * @date 2018/5/5
 */
public interface UserMapper {

    User queryById(Long id);

    List<User> queryAll();

    int saveUser(User user);

    int updateUser(User user);

    int deleteById(Long id);

}
